#ifndef TestFIFO32DMAReader_h
#define TestFIFO32DMAReader_h

#include "sys/types.h"
#include "FIFO32DMAReader.h"

class TestFIFO32DMAReader : public FIFO32DMAReader
{
 private:
    u_int32_t counter;
 public:
    TestFIFO32DMAReader(u_int32_t offset=0) {
	counter = offset;
    }
    
    u_int32_t readFIFO32DMA(u_int32_t len, u_int32_t *buf)
    {
	for(u_int32_t i=0; i<len; i++)
	    buf[i] = counter++;

	return len;
    }
};

#endif
